package com.qidian.buy.controller;

import com.qidian.buy.service.IContentService;
import com.qidian.buy.util.pojo.QDResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Author 郭浩
 */
@RestController
@CrossOrigin
@RequestMapping("/index")//首页
public class IndexController {
    @Autowired
    private IContentService contentService;
    @RequestMapping("/load")
    public QDResult load(){
        return contentService.load();
    }
}
